package com.zjcode.cdcer.controller;

import com.chinatechstar.component.commons.controller.BaseController;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.SysDictService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/v1/sysDict")
public class SysDictController extends BaseController {

    @Autowired
    private SysDictService sysDictService;

    @GetMapping("/findAllDictName")
    @ApiOperation("查询所有的字典数据具体值，作为下拉框")
    public JsonObj findAllDictName() {
        return sysDictService.findAllDictName();
    }
}
